package com.yuerlive.rainbow.entity;

import java.util.Date;

/**
 * Created by xiaoyi on 2017/6/9.
 */

public class StreamData {


    private String id;
    private Date createdAt;
    private Date updatedAt;
    private Date expireAt;
    private String title;
    private String hub;
    private int disabledTill;
    private boolean disabled;
    private String publishKey;
    private String publishSecurity;
    private int nonce;
    private Hosts hosts;
    private String nropEnable;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setExpireAt(Date expireAt) {
        this.expireAt = expireAt;
    }

    public Date getExpireAt() {
        return expireAt;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setHub(String hub) {
        this.hub = hub;
    }

    public String getHub() {
        return hub;
    }

    public void setDisabledTill(int disabledTill) {
        this.disabledTill = disabledTill;
    }

    public int getDisabledTill() {
        return disabledTill;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public boolean getDisabled() {
        return disabled;
    }

    public void setPublishKey(String publishKey) {
        this.publishKey = publishKey;
    }

    public String getPublishKey() {
        return publishKey;
    }

    public void setPublishSecurity(String publishSecurity) {
        this.publishSecurity = publishSecurity;
    }

    public String getPublishSecurity() {
        return publishSecurity;
    }

    public void setNonce(int nonce) {
        this.nonce = nonce;
    }

    public int getNonce() {
        return nonce;
    }

    public void setHosts(Hosts hosts) {
        this.hosts = hosts;
    }

    public Hosts getHosts() {
        return hosts;
    }

    public void setNropEnable(String nropEnable) {
        this.nropEnable = nropEnable;
    }

    public String getNropEnable() {
        return nropEnable;
    }


    public class Hosts {

        private Publish publish;
        private Live live;
        private Playback playback;
        private Play play;

        public void setPublish(Publish publish) {
            this.publish = publish;
        }

        public Publish getPublish() {
            return publish;
        }

        public void setLive(Live live) {
            this.live = live;
        }

        public Live getLive() {
            return live;
        }

        public void setPlayback(Playback playback) {
            this.playback = playback;
        }

        public Playback getPlayback() {
            return playback;
        }

        public void setPlay(Play play) {
            this.play = play;
        }

        public Play getPlay() {
            return play;
        }

    }

    public class Live {

        private String hdl;
        private String hls;
        private String http;
        private String rtmp;
        private String snapshot;

        public void setHdl(String hdl) {
            this.hdl = hdl;
        }

        public String getHdl() {
            return hdl;
        }

        public void setHls(String hls) {
            this.hls = hls;
        }

        public String getHls() {
            return hls;
        }

        public void setHttp(String http) {
            this.http = http;
        }

        public String getHttp() {
            return http;
        }

        public void setRtmp(String rtmp) {
            this.rtmp = rtmp;
        }

        public String getRtmp() {
            return rtmp;
        }

        public void setSnapshot(String snapshot) {
            this.snapshot = snapshot;
        }

        public String getSnapshot() {
            return snapshot;
        }

    }

    public class Play {

        private String http;
        private String rtmp;

        public void setHttp(String http) {
            this.http = http;
        }

        public String getHttp() {
            return http;
        }

        public void setRtmp(String rtmp) {
            this.rtmp = rtmp;
        }

        public String getRtmp() {
            return rtmp;
        }

    }

    public class Playback {

        private String hls;
        private String http;

        public void setHls(String hls) {
            this.hls = hls;
        }

        public String getHls() {
            return hls;
        }

        public void setHttp(String http) {
            this.http = http;
        }

        public String getHttp() {
            return http;
        }

    }

    public class Publish {

        private String rtmp;

        public void setRtmp(String rtmp) {
            this.rtmp = rtmp;
        }

        public String getRtmp() {
            return rtmp;
        }

    }
}
